com.supermap.ar.areffect

Class OcclusionHelper

  • java.lang.Object
    • com.supermap.ar.areffect.OcclusionHelper


  • public class OcclusionHelper
    extends java.lang.Object
    Occlusion assistant

    Mostly used for local rendering of the picture, showing the rendering effect of virtual and real occlusion

    • Method Detail

      • init

        public OcclusionHelper init(float reSampleSize)
        Initialize
        Parameters:
        reSampleSize - Resampling coefficient
      • getReSampleSize

        public float getReSampleSize()
        Gets the resampling size

        Value range[0.001,1]

        Returns:
      • isEnabled

        public boolean isEnabled()
        Checking whether to Enable
        Returns:
        Status value
      • setEnabled

        public OcclusionHelper setEnabled(boolean enabled)
        Setting the Enable Status
        Parameters:
        enabled - Status value
      • addPointList

        public OcclusionHelper addPointList(java.util.ArrayList<int[]> screenPoint)
        Adds a screen coordinate point collection

        A collection of points that are not joined at the beginning and end

        Parameters:
        screenPoint -
      • clearPointList

        public OcclusionHelper clearPointList()
        Clears the screen coordinate point collection
      • setUniquePointList

        public OcclusionHelper setUniquePointList(java.util.ArrayList<int[]> screenPoint)
        Sets a unique set of screen coordinate points
        Parameters:
        screenPoint -
      • refresh

        public void refresh()
        refresh
      • isLocked

        public boolean isLocked()
        Get lock status

        isEnabled() is true, and setLocked(true) returns true

        Returns:
      • setLocked

        public boolean setLocked(boolean locked)
        Set lock status

        It only works if #setEnabled(Boolean) is true

        Parameters:
        locked -
        Returns:
        Return true on success